package com.ipc.core.entity.gwl;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 三级诱导屏详情(SecondScreenDetail)表实体类
 *
 * @author 高万里
 * @since 2023-05-02 09:41:38
 */
@TableName("t_second_screen_detail")
@ColumnWidth(20)
@Data
public class SecondScreenDetail extends Model<SecondScreenDetail> {

    //ID,主键
    @TableId(type = IdType.AUTO)
    private Integer id;

    //显示内容    
    @NotBlank(message = "显示内容不能为空!")
    private String content;

    //方向    
    @NotBlank(message = "方向不能为空!")
    private String direction;

    //距离(米)
    @Min(value = 0)
    @NotNull(message = "距离(米)不能为空!")
    private Double distance;

    //排序    
    @Min(value = 1)
    @NotNull(message = "排序不能为空!")
    private Integer sort;

    //停车场ID    
    @Min(value = 0)
    @NotNull(message = "停车场ID不能为空!")
    private Integer parkId;

    //二级诱导屏ID    
    @Min(value = 0)
    @NotNull(message = "二级诱导屏ID不能为空!")
    private Integer secondId;
}

